var express = require('express');
var router = express.Router();
var userData = require('../dataJson/users');
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

// 获取用户信息
router.get('/current', function (req, res) {
  res.send( userData.userInfo );
});

// 获取用户的收藏列表
router.get('/collect', function( req, res ) {
  res.send( userData.userCollect )
})


























module.exports = router;
